<template>
  <div class="bg-white mt-5">
    <div class="container p-3">
      <br />
      <el-page-header @back="$router.push('/')" content="新闻中心">
      </el-page-header>
      <br />
    </div>
    <div class="container pt-3">
      <div
        v-for="(v, i) in newlist"
        :key="i"
        class="row index3-row border-bottom"
      >
        <div class="col">
          <ul>
            <li>
              <router-link
                class="cu"
                tag="h5"
                :to="{ name: 'newsinfo', params: { id: v.id } }"
                v-text="v.title"
              ></router-link>
            </li>
          </ul>
          <router-link
            tag="p"
            :to="{ name: 'newsinfo', params: { id: v.id } }"
            class="text-indent cu"
            v-text="v.context"
          ></router-link>
          <p class="tme">&nbsp;&nbsp;&nbsp; {{ v.createdAt }}</p>
        </div>
        <div class="col-img cu" v-if="v.image">
          <img :src="v.image" width="200" height="130" alt="" />
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import newlist from "../data/index.js";
export default {
  data() {
    return {
      newlist: newlist.newlist,
    };
  },
};
</script>

<style scoped>
.index3-row {
  height: 175px;
  padding-top: 15px;
  padding-bottom: 20px;
}
.text-indent {
  height: 80px;
  color: rgb(163, 163, 163);
  text-indent: 28px;
  padding-left: 10px;
}
.tme {
  color: rgb(163, 163, 163);
  text-indent: 28px;
}
.col-img {
  width: 200px;
}
.dian {
  display: inline-block;
  border-radius: 50%;
  width: 3px;
  height: 3px;
  background-color: rgb(100, 155, 245);
  margin-top: -10px;
}
.container {
  padding-bottom: 200px;
}
.cu {
  cursor: pointer;
}
</style>
